package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment comment);

    Comment selectByPrimaryKey(Long id);

    List<Comment> selectForList(QueryObject qo);

    int updateByPrimaryKey(Comment record);

    int selectForNum(@Param("articleId") Long articleId, @Param("modelState") Integer modelState);

    List<Comment> selectHotCommentList();


}